package com.zhny.aiot.rtu.dir.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class RTUDIRStoreEntry extends StoreEntity {

    @PropertyValue(alias = "设备状态",description = "设备状态",unit = "",icon=IconConstract.Other,variableType=VariableType.OpenCloseStop,actions={
            @ActionValue(name=Operate.Open,commandCode="open",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="close",eventType=EventType.Click),
            @ActionValue(name=Operate.Stop,commandCode="stop",eventType=EventType.Click),
            @ActionValue(name=Operate.Query,commandCode="query",eventType=EventType.Click)
    })
    private String status;


    //**功能缩减
//    @PropertyValue(alias = "设备比例",description = "设备比例",unit = "",icon=IconConstract.Other,variableType=VariableType.InputValue,actions={
//            @ActionValue(name=Operate.Value,commandCode="value",eventType=EventType.Input),
//            @ActionValue(name=Operate.Query,commandCode="query",eventType=EventType.Click)
//    })
//    private String percentage;
}
